package com.qf.recharge.controller;

import com.qf.common.core.common.R;
import com.qf.recharge.param.RechargeParam;
import com.qf.recharge.service.RechargeService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * 2025/1/9
 */
@RestController
@RequestMapping("/order/recharge")
public class RechargeController {
    @Resource
    private RechargeService rechargeService;

    @PostMapping("/add")
    public R addRecharge(@RequestBody RechargeParam rechargeParam){
        rechargeService.addRecharge(rechargeParam);
        return R.ok();
    }

}
